package com.sofeteem.ikun.view;

import javax.swing.*;

public class GameFrame extends JFrame {

    public GameFrame() {
        initUI();
    }

    private void initUI() {
        add(new GamePanel());
        setTitle("Shooting Game");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(800, 600);
        setLocationRelativeTo(null);
        setVisible(true);
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new GameFrame();
            }
        });
    }
}
